3.133 \(\int \cos ^{-1}(a x)^n \, dx\)

Optimal. Leaf size=75 \[ \frac {\cos ^{-1}(a x)^n \left (-i \cos ^{-1}(a x)\right )^{-n} \Gamma \left (n+1,-i \cos ^{-1}(a x)\right )}{2 a}+\frac {\left (i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \Gamma \left (n+1,i \cos ^{-1}(a x)\right )}{2 a} \]

[Out]

1/2*arccos(a*x)^n*GAMMA(1+n,-I*arccos(a*x))/a/((-I*arccos(a*x))^n)+1/2*arccos(a*x)^n*GAMMA(1+n,I*arccos(a*x))/
a/((I*arccos(a*x))^n)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4624, 3308, 2181} \[ \frac {\cos ^{-1}(a x)^n \left (-i \cos ^{-1}(a x)\right )^{-n} \text {Gamma}\left (n+1,-i \cos ^{-1}(a x)\right )}{2 a}+\frac {\left (i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \text {Gamma}\left (n+1,i \cos ^{-1}(a x)\right )}{2 a} \]

Antiderivative was successfully verified.

[In]

Int[ArcCos[a*x]^n,x]

[Out]

(ArcCos[a*x]^n*Gamma[1 + n, (-I)*ArcCos[a*x]])/(2*a*((-I)*ArcCos[a*x])^n) + (ArcCos[a*x]^n*Gamma[1 + n, I*ArcC
os[a*x]])/(2*a*(I*ArcCos[a*x])^n)

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 3308

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Dist[I/2, Int[(c + d*x)^m/E^(I*(e + f*x))
, x], x] - Dist[I/2, Int[(c + d*x)^m*E^(I*(e + f*x)), x], x] /; FreeQ[{c, d, e, f, m}, x]

Rule 4624

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Dist[1/(b*c), Subst[Int[x^n*Sin[a/b - x/b], x], x, a
 + b*ArcCos[c*x]], x] /; FreeQ[{a, b, c, n}, x]

Rubi steps

\begin {align*} \int \cos ^{-1}(a x)^n \, dx &=-\frac {\operatorname {Subst}\left (\int x^n \sin (x) \, dx,x,\cos ^{-1}(a x)\right )}{a}\\ &=-\frac {i \operatorname {Subst}\left (\int e^{-i x} x^n \, dx,x,\cos ^{-1}(a x)\right )}{2 a}+\frac {i \operatorname {Subst}\left (\int e^{i x} x^n \, dx,x,\cos ^{-1}(a x)\right )}{2 a}\\ &=\frac {\left (-i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \Gamma \left (1+n,-i \cos ^{-1}(a x)\right )}{2 a}+\frac {\left (i \cos ^{-1}(a x)\right )^{-n} \cos ^{-1}(a x)^n \Gamma \left (1+n,i \cos ^{-1}(a x)\right )}{2 a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 70, normalized size = 0.93 \[ \frac {\cos ^{-1}(a x)^n \left (\cos ^{-1}(a x)^2\right )^{-n} \left (\left (-i \cos ^{-1}(a x)\right )^n \Gamma \left (n+1,i \cos ^{-1}(a x)\right )+\left (i \cos ^{-1}(a x)\right )^n \Gamma \left (n+1,-i \cos ^{-1}(a x)\right )\right )}{2 a} \]

Antiderivative was successfully verified.

[In]

Integrate[ArcCos[a*x]^n,x]

[Out]

(ArcCos[a*x]^n*((I*ArcCos[a*x])^n*Gamma[1 + n, (-I)*ArcCos[a*x]] + ((-I)*ArcCos[a*x])^n*Gamma[1 + n, I*ArcCos[
a*x]]))/(2*a*(ArcCos[a*x]^2)^n)

________________________________________________________________________________________

fricas [F]  time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\arccos \left (a x\right )^{n}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccos(a*x)^n,x, algorithm="fricas")

[Out]

integral(arccos(a*x)^n, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \arccos \left (a x\right )^{n}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccos(a*x)^n,x, algorithm="giac")

[Out]

integrate(arccos(a*x)^n, x)

________________________________________________________________________________________

maple [C]  time = 0.12, size = 148, normalized size = 1.97 \[ -\frac {2^{n} \sqrt {\pi }\, \left (\frac {\arccos \left (a x \right )^{1+n} 2^{-n} \sqrt {-a^{2} x^{2}+1}}{\sqrt {\pi }\, \left (2+n \right )}-\frac {2^{-n} \sqrt {\arccos \left (a x \right )}\, \LommelS 1 \left (n +\frac {3}{2}, \frac {3}{2}, \arccos \left (a x \right )\right ) \sqrt {-a^{2} x^{2}+1}}{\sqrt {\pi }\, \left (2+n \right )}-\frac {3 \,2^{-1-n} \left (\frac {4}{3}+\frac {2 n}{3}\right ) \left (a x \arccos \left (a x \right )-\sqrt {-a^{2} x^{2}+1}\right ) \LommelS 1 \left (n +\frac {1}{2}, \frac {1}{2}, \arccos \left (a x \right )\right )}{\sqrt {\pi }\, \left (2+n \right ) \sqrt {\arccos \left (a x \right )}}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arccos(a*x)^n,x)

[Out]

-2^n*Pi^(1/2)/a*(1/Pi^(1/2)/(2+n)*arccos(a*x)^(1+n)*2^(-n)*(-a^2*x^2+1)^(1/2)-2^(-n)/Pi^(1/2)/(2+n)*arccos(a*x
)^(1/2)*LommelS1(n+3/2,3/2,arccos(a*x))*(-a^2*x^2+1)^(1/2)-3*2^(-1-n)/Pi^(1/2)/(2+n)/arccos(a*x)^(1/2)*(4/3+2/
3*n)*(a*x*arccos(a*x)-(-a^2*x^2+1)^(1/2))*LommelS1(n+1/2,1/2,arccos(a*x)))

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccos(a*x)^n,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: Error executing code in Maxima: expt: undefined: 0 to a negative e
xponent.

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {acos}\left (a\,x\right )}^n \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acos(a*x)^n,x)

[Out]

int(acos(a*x)^n, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \operatorname {acos}^{n}{\left (a x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(acos(a*x)**n,x)

[Out]

Integral(acos(a*x)**n, x)

________________________________________________________________________________________